import type {UserNotice} from "@/api/user-notice/types.ts";
import {request} from "@/api";

const apiPrefix = '/varian-system/user-notice'
export const userNoticeApi = {
    list: (params: any) => request.get<UserNotice[]>(`${apiPrefix}/list`, {params}),
    readAll: () => request.put(`${apiPrefix}/read-all`),
    read: (noticeId: string) => request.put(`${apiPrefix}/read/${noticeId}`),
    detail: (noticeId: string) => request.get<UserNotice>(`${apiPrefix}/${noticeId}`),
}
